import { system as http, auth as authHttp } from '@zh/common-utils/http'

export { http }

/**
 * 业务 获取列表
 * @param {Object} params
 */
export function getBusinessList (params) {
  return http.post('/sy/secretGradeBusiness/list', params)
}
/**
 * 业务 保存
 * @param {Object} params
 */
export function saveBusiness (params) {
  return http.post('/sy/secretGradeBusiness/save', params)
}
/**
 * 业务 删除
 */
export function deleteBusiness (id) {
  return http.post('/sy/secretGradeBusiness/delete?id='+id, {})
}


/**
 * 人员 获取列表
 * @param {Object} params
 */
export function getPersonList (params) {
  return http.post('/sy/secretGradePerson/list', params)
}
/**
 * 人员 保存
 * @param {Object} params
 */
export function savePerson (params) {
  return http.post('/sy/secretGradePerson/save', params)
}
/**
 * 业务 删除
 */
export function deletePerson (id) {
  return http.post('/sy/secretGradePerson/delete?id='+id, {})
}
/**
 * 人员 获取业务
 * @param {Object} params
 */
export function getBusinessSelect () {
  return http.get('sy/secretGradeBusiness/getSecretGradeBusiness')
}
/**
 * 获取信息
 *
 */
export function getSyProperties () {
  return http.get('/sy/properties')
}
